home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
game
/
demo
/
bladeDemo.lha
/
Install
< prev
next >
Wrap
Text File
|
1997-08-17
|
3KB
|
208 lines
; Blade installer script v1.0
; Initialise the variables
(set #destmess "Where do you want Blade installed ? A directory will be created there.")
(set #copying "Copying files")
(set #unpacking "Unpacking Archives")
(set #insert2 "\n\n\n\n\nPlease Insert Disk 2")
(set #insert3 "\n\n\n\n\nPlease Insert Disk 3")
; Print message for experts and intermediate
(message
"\n\n\nThis script installs Blade to your Hard Drive\n\n"
"All files are stored in the directory you specify.\n"
"Any other parts of your system like the s: directory or the libs:\n"
"etcetera are not affected in any way.\n\n"
"To deinstall later, just delete the Blade directory.\n"
)
; Copy lha to ram
(copyfiles
(prompt #copying)
(help @copyfiles-help)
(source "Blade1:c/lha")
(dest "RAM:T/")
)
; First, ask where to install the thing
(set destdir
(askdir
(prompt #destmess)
(help @askdir-help)
(default "Work:Games/")
)
)
; Make the final statement mention the right directory
(set @default-dest
(tackon destdir "Blade")
)
(set #sound
(tackon @default-dest "Sound/")
)
(set #agadata
(tackon @default-dest "AGAData/")
)
(set #ocsdata
(tackon @default-dest "OCSData/")
)
; Make the directories and sub directories
(makedir @default-dest
)
(makedir
(tackon
destdir "Blade/OCSData"
)
)
(makedir
(tackon
destdir "Blade/AGAData"
)
)
(makedir
(tackon
destdir "Blade/Sound"
)
)
(makedir
(tackon
destdir "Blade/Games"
)
)
(complete 10)
(copyfiles
(prompt #copying)
(help @copyfiles-help)
(source "Blade1:")
(dest @default-dest)
(pattern "Blad#?")
(files)
(infos)
)
(copyfiles
(prompt #copying)
(help @copyfiles-help)
(source "Blade1:OCSScrnTitleScreen.gfx")
(dest @default-dest)
)
(complete 20)
(working #unpacking)
(run
(cat
"RAM:T/lha -x -q x Blade1:Data2.lha " #sound
)
)
(complete 40)
(askdisk
(prompt #insert2)
(dest "Blade2")
(help @askdisk-help)
)
(complete 50)
(copyfiles
(prompt #copying)
(help @copyfiles-help)
(source "Blade2:")
(dest #ocsdata)
(pattern "#?.gfx")
(files)
)
(complete 60)
(copyfiles
(prompt #copying)
(help @copyfiles-help)
(source "Blade2:MODBlade.mus")
(dest #ocsdata)
)
(complete 70)
(working #unpacking)
(run
(cat
"RAM:T/lha -x -q x Blade2:Data3.lha " #sound
)
)
(complete 80)
(askdisk
(prompt #insert3)
(dest "Blade3")
(help @askdisk-help)
)
(working #unpacking)
(run
(cat
"RAM:T/lha -x -q x Blade3:Data1.lha " #agadata
)
)
(complete 90)
(message
"\n\n\nThe OCS version of Blade needs two assigns to be made.\n\n"
"If you want to run the AGA version only then these are not\n"
"neccesary. However all OCS machines need the assign and any\n"
"AGA owners wanting to boot with original chips and see the\n"
"OCS version also need the assign."
)
(set #choice
(askchoice
(prompt "Shall I add the assigns to your user-startup ?")
(help @askoptions-help)
(choices "Yes" "No" "Tell me about them and I'll do it myself")
(default 0)
)
)
(if (= #choice 0)
(
(startup "Blade"
(help @startup-help)
(prompt "Adding Assign")
(command
(cat "Assign >NIL: Blade1: " @default-dest "\n")
(cat "Assign >NIL: Blade2: " @default-dest "/OCSData")
)
)
)
)
(if (= #choice 2)
(message
"\n\n\nAssign Information for the OCS Version.\n\n"
"Assign Blade1: to " @default-dest "\n"
"Assign Blade2: to " @default-dest "/OCSData/"
)
)
(complete 100)